Class SlarpDataImpl

All Implemented Interfaces:
IPCData, Header, Pdu, Signal, SlarpData

public class SlarpDataImpl extends HeaderImpl implements SlarpData
  • Field Details

    • code

      protected int code
    • address

      protected IPAddress address
    • mask

      protected IPAddress mask
    • unused

      protected Short unused
    • mySeq

      protected int mySeq
    • yourSeq

      protected int yourSeq
    • reliability

      protected Short reliability
    • isHdlcFrame

      protected boolean isHdlcFrame
  • Constructor Details

    • SlarpDataImpl

      public SlarpDataImpl()
  • Method Details

    • getCode

      public int getCode()
      Specified by:
      getCode in interface SlarpData
      Returns:
      int Returns a int
    • setCode

      public void setCode(int code)
      Specified by:
      setCode in interface SlarpData
      Parameters:
      code - Takes in a parameter of code
    • getAddress

      public IPAddress getAddress()
      Specified by:
      getAddress in interface SlarpData
      Returns:
      IPAddress Returns a IPAddress
    • setAddress

      public void setAddress(IPAddress address)
      Specified by:
      setAddress in interface SlarpData
      Parameters:
      address - Takes in a parameter of address
    • getMask

      public IPAddress getMask()
      Specified by:
      getMask in interface SlarpData
      Returns:
      IPAddress Returns a IPAddress
    • setMask

      public void setMask(IPAddress mask)
      Specified by:
      setMask in interface SlarpData
      Parameters:
      mask - Takes in a parameter of mask
    • getUnused

      public Short getUnused()
      Specified by:
      getUnused in interface SlarpData
      Returns:
      Short Returns a Short
    • setUnused

      public void setUnused(Short unused)
      Specified by:
      setUnused in interface SlarpData
      Parameters:
      unused - Takes in a parameter of unused
    • getMySeq

      public int getMySeq()
      Specified by:
      getMySeq in interface SlarpData
      Returns:
      int Returns a int
    • setMySeq

      public void setMySeq(int mySeq)
      Specified by:
      setMySeq in interface SlarpData
      Parameters:
      mySeq - Takes in a parameter of mySeq
    • getYourSeq

      public int getYourSeq()
      Specified by:
      getYourSeq in interface SlarpData
      Returns:
      int Returns a int
    • setYourSeq

      public void setYourSeq(int yourSeq)
      Specified by:
      setYourSeq in interface SlarpData
      Parameters:
      yourSeq - Takes in a parameter of yourSeq
    • getReliability

      public Short getReliability()
      Specified by:
      getReliability in interface SlarpData
      Returns:
      Short Returns a Short
    • setReliability

      public void setReliability(Short reliability)
      Specified by:
      setReliability in interface SlarpData
      Parameters:
      reliability - Takes in a parameter of reliability
    • getIsHdlcFrame

      public boolean getIsHdlcFrame()
      Specified by:
      getIsHdlcFrame in interface SlarpData
      Returns:
      boolean Returns a boolean
    • setIsHdlcFrame

      public void setIsHdlcFrame(boolean isHdlcFrame)
      Specified by:
      setIsHdlcFrame in interface SlarpData
      Parameters:
      isHdlcFrame - Takes in a parameter of isHdlcFrame
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class HeaderImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class HeaderImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class HeaderImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class HeaderImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class HeaderImpl